package com.probiz.estore.system.dao;

import java.util.List;

import com.probiz.estore.common.model.system.TaxRate;
import com.probiz.estore.core.dao.GenericDao;
/**
 * TaxRate Data Access Object (DAO) interface.
 * Developer introduced interfaces should be declared here. Won't get overwritten.
 */
public interface TaxRateDao extends GenericDao<TaxRate> {
	/**
	 * 获得指定商品类型的税率
	 * @param productTypeId
	 * @return
	 */
	public List<TaxRate> getRevenueTax(Integer productTypeId) ;
	/**
	 * 根据地区id和商品类型id获得税率列表
	 * @param regionId
	 * @param productTypeId
	 * @return
	 */
	public List<TaxRate> getTaxRateListByRegionIdAndProductTypeId(Integer regionId, Integer productTypeId);
	/**
	 * 获得税率个数
	 * @return
	 */
	public Long countAll();
}
